<?php
/*  base url /api/order  */
Route::prefix("order")->group(function(){

    Route::post("k-v/all-payment-methods", "Order\OrderController@paymentMethodList")->name("order.payment_methods_list");
    Route::post("list", "Order\OrderController@list")->name("order.list");
    Route::post("query-assets", "Order\OrderController@queryAssetItems")->name("order.query-assets");
    Route::post("create-or-update", "Order\OrderController@createOrUpdate")->name("order.createOrUpdate");
    Route::post('order-items/{id}', "Order\OrderController@fetchOrderItemsById")->name("order.order-items");
    Route::post('order-bundles/{id}', "Order\OrderController@fetchOrderBundlesById")->name("order.order-bundles");
    Route::post('lend/{id}', "Order\OrderController@lend")->name("order.lend");
    Route::post('return/{id}', "Order\OrderController@return")->name("order.return");
    Route::post('cancel/{id}', "Order\OrderController@cancel")->name("order.cancel");
    Route::post('complete/{id}', "Order\OrderController@complete")->name("order.complete");
    Route::post("print/pdf/{id}", "Order\OrderController@printPDF")->name("order.print.pdf");
});
